package com.ys.exception.base;

import com.ys.enu.ResultCodeEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 参数异常类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ParamException extends   BizException {

    private String msg="success";
    private Integer code=ResultCodeEnum.illegalargument.getCode();
    private Object data;

    public ParamException(String msg, ResultCodeEnum resultCodeEnum) {
        this.msg=msg;
        this.code=resultCodeEnum.getCode();
    }

}
